package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.FoodIngredient;
import org.apache.ibatis.annotations.Mapper;

/**
 * 食材Mapper接口
 *
 * @author xian_pei
 * @date 2024-06-13
 */
@Mapper
public interface FoodIngredientMapper
{
    /**
     * 查询食材
     *
     * @param ingredientId 食材主键
     * @return 食材
     */
    public FoodIngredient selectFoodIngredientByIngredientId(Long ingredientId);

    /**
     * 查询食材列表
     *
     * @param foodIngredient 食材
     * @return 食材集合
     */
    public List<FoodIngredient> selectFoodIngredientList(FoodIngredient foodIngredient);

    /**
     * 新增食材
     *
     * @param foodIngredient 食材
     * @return 结果
     */
    public int insertFoodIngredient(FoodIngredient foodIngredient);

    /**
     * 修改食材
     *
     * @param foodIngredient 食材
     * @return 结果
     */
    public int updateFoodIngredient(FoodIngredient foodIngredient);

    /**
     * 删除食材
     *
     * @param ingredientId 食材主键
     * @return 结果
     */
    public int deleteFoodIngredientByIngredientId(Long ingredientId);

    /**
     * 批量删除食材
     *
     * @param ingredientIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFoodIngredientByIngredientIds(Long[] ingredientIds);
}
